from django.conf.urls.defaults import patterns, include, url

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    #url(r'^$', 'CostCalc.views.home', name='home'),
    # url(r'^CostCalc/', include('CostCalc.foo.urls')),
    url(r'^CostCalc/$', 'HomePage.views.homepage'),
    url(r'^CostCalc/Login/$', 'HomePage.views.loginpage'),
    url(r'^CostCalc/userhomepage/$', 'HomePage.views.userhomepage'),
    url(r'^CostCalc/register/$', 'HomePage.views.register'),
    
    url(r'^CostCalc/(?P<Event_Id>\d+)/TripHomepage/$', 'HomePage.views.TripHomepage'),
    
    url(r'^CostCalc/CreateTrip/$', 'HomePage.views.CreateEvent'),
    
    url(r'^CostCalc/(?P<Event_Id>\d+)/AddTripExpense/$', 'HomePage.views.AddTripExpense'),
    url(r'^CostCalc/(?P<Event_Id>\d+)/(?P<Expense_Id>\d+)/ViewTripExpense/$', 'HomePage.views.ViewTripExpense'),
    
    # Uncomment the admin/doc line below to enable admin documentation:
    url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
)
